import request from '@/utils/request.js'

// 根据userid查询医生的信息
export function getDocterId(userId){
  return request({
    url: '/masterdocker/log/',
    method: 'get',
    params: userId

                 })

}
// 根据医生id查询住院病人的信息
export function listMasterdockerlog1(query) {
  return request({
    url: '/masterdocker/patient',
    method: 'get',
    params: query
  })
}


// 查询病人病情记录日志列表
export function listMasterdockerlog(query) {
  return request({
    url: '/masterdocker/masterdockerlog/list',
    method: 'get',
    params: query
  })
}


// 查询病人病情记录日志详细
export function getMasterdockerlog(logId) {
  return request({
    url: '/masterdocker/masterdockerlog/' + logId,
    method: 'get'
  })
}

// 新增病人病情记录日志
export function addMasterdockerlog(data) {
  return request({
    url: '/masterdocker/masterdockerlog',
    method: 'post',
    data: data
  })
}

// 修改病人病情记录日志
export function updateMasterdockerlog(data) {
  return request({
    url: '/masterdocker/masterdockerlog',
    method: 'put',
    data: data
  })
}

// 删除病人病情记录日志
export function delMasterdockerlog(logId) {
  return request({
    url: '/masterdocker/masterdockerlog/' + logId,
    method: 'delete'
  })
}
